package com.ssy.lingxi.order.model.vo.common.response;

import com.ssy.lingxi.order.utils.NumberUtil;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 加工能力 - 查询加工订单商品
 * @author 万宁
 * @version 2.0.0
 * @date 2021-09-04
 */
public class OrderEnhanceProductDetailVO implements Serializable {
    private static final long serialVersionUID = -9069236643868987867L;

    public OrderEnhanceProductDetailVO(String processKey, Long orderProductId, String name, String category, String brand, String spec, String unit, BigDecimal quantity, BigDecimal enhanceCount) {
        this.processKey = processKey;
        this.orderProductId = orderProductId;
        this.name = name;
        this.category = category;
        this.brand = brand;
        this.spec = spec;
        this.unit = unit;
        this.quantity = NumberUtil.formatToInteger(quantity);
        this.enhanceCount = NumberUtil.formatToInteger(enhanceCount);
    }

    /**
     * 售后加工流程的Key
     */
    private String processKey;

    /**
     * 订单商品Id
     */
    private Long orderProductId;

    /**
     * 商品名称
     */
    private String name;

    /**
     * 品类
     */
    private String category;

    /**
     * 品牌
     */
    private String brand;

    /**
     * 规格
     */
    private String spec;

    /**
     * 单位
     */
    private String unit;

    /**
     * 订单数量
     */
    private String quantity;

    /**
     * 已换货数量
     */
    private String enhanceCount;

    public String getProcessKey() {
        return processKey;
    }

    public void setProcessKey(String processKey) {
        this.processKey = processKey;
    }

    public Long getOrderProductId() {
        return orderProductId;
    }

    public void setOrderProductId(Long orderProductId) {
        this.orderProductId = orderProductId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getQuantity() {
        return quantity;
    }

    public void setQuantity(String quantity) {
        this.quantity = quantity;
    }

    public String getEnhanceCount() {
        return enhanceCount;
    }

    public void setEnhanceCount(String enhanceCount) {
        this.enhanceCount = enhanceCount;
    }
}
